package com.bm.server.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bm.common.dto.AllySearchDto;
import com.bm.server.entity.Ally;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description:
 * @Author: 赵金帅
 * @Date: 2022/07/18/23:21
 */
public interface AllySearchDao extends BaseMapper<Ally> {
    @Select("SELECT allyname,allycard,allypath FROM t_ally where allyname=#{name} ;")
    List<AllySearchDto> allySelectAllBy(@Param("name") String name);
   /* SELECT
    z.num,
    uh.headpath,
    u.nickName
            FROM
    t_user_head AS uh
    INNER JOIN
    t_userinfo AS u
            ON
    uh.uid = u.uid
    INNER JOIN
    t_zuanshi AS z
            ON
    uh.uid = z.uid AND
    u.uid = z.uid
            WHERE
    uh.uid = 1*/
}
